package AST;

public class ReturnStmt extends FlowStmt {
	private Test test;

	public ReturnStmt(Test test) {
		print();
		this.test = test;
	}

	public ReturnStmt() {
		print();
	}

	public Test getTest() {
		return test;
	}

	public void setTest(Test test) {
		this.test = test;
	}

	public void print() {
		System.out.println("ReturnStmt");
	}

	public void genC(PW pw) {
		pw.print("elseFlag = 1;\n");
		pw.print("return ");
		test.genC(pw);

	}

}